<?php

class Application_Form_Auth extends Zend_Form
{        
    public function init() 
    {
        $translate = new My_Action_Helper_Lang();
        
        $this->setName('login_user');
	$username = new Zend_Form_Element_Text('email');
        $username->setLabel($translate->_('Email'))
	         ->setRequired(true)	            
                 ->addValidator('NotEmpty')
                 ->addValidator('EmailAddress')
                 ->addFilter('StripTags')
	         ->addFilter('StringTrim');
	      
	$password = new Zend_Form_Element_Password('password');
	$password->setLabel($translate->_('Password'))
                 ->setAttrib('id', 'password-login')
	         ->setRequired(true)
	         ->addValidator('NotEmpty') 
                 ->addFilter('StripTags')
	         ->addFilter('StringTrim');
                 
                //->addValidator(new Application_Plugin_PasswordStrength());
	         
	$submit = new Zend_Form_Element_Submit('submit');
	$submit->setLabel($translate->_('Login'))
               ->setAttrib('class', 'button');
	         
        $this->addElements(array($username, $password, $submit));	         
	$this->setMethod('post');
    }


}

